<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/5/22
  Time: 10:04
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>

<head>
    <title>首页</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link href="../css/style.css" rel="stylesheet" type="text/css" media="all"/>
    <link href="../css/slider.css" rel="stylesheet" type="text/css" media="all"/>
    <script type="text/javascript" src="../js/jquery-1.9.0.min.js"></script>
    <script type="text/javascript" src="../js/move-top.js"></script>
    <script type="text/javascript" src="../js/easing.js"></script>

    <link href="../css/lb.css" rel="stylesheet" type="text/css" media="all"/>
    <script type="text/javascript" src="../js/jquery.nivo.slider.js"></script>
    <script type="text/javascript">
        $(window).load(function () {
            $('#slider').nivoSlider({
                pauseTime: 3000
            });
        });
    </script>
</head>

<body>
<%
    if (application.getAttribute("count") == null) {
        application.setAttribute("count", new Integer(0));
    }
    Integer count = (Integer) application.getAttribute("count");
    application
            .setAttribute("count", new Integer(count.intValue() + 1));
    count = (Integer) application.getAttribute("count");
%>

<div class="header">
    <!--头部首页①-->
    <jsp:include page="headerOne.jsp" flush="true"></jsp:include>
    <div class="wrap">
        <!--头部首页②-->
        <jsp:include page="headerTwo.jsp"></jsp:include>
        <div class="slider">
            <div class="slider-wrapper theme-default">
                <div class="user_callback">
                    <div class="user_pic" id="user_pic">
                        <span class="prev"></span> <span class="next"></span>
                        <ul id="user_call">
                            <c:forEach begin="0" end="7" items="${topMovies}" var="movie" varStatus="index">
                                <li class="user_pic${index.count}">
                                    <a href="buy/${movie.mid}"> <img
                                            src="${movie.mpicture}"
                                            alt="${movie.mname}" width="320" height="480"/></a>
                                </li>
                            </c:forEach>
                        </ul>
                    </div>
                </div>

            </div>
        </div>
        <!------End Slider ------------>
    </div>
    <div class="clear"></div>
</div>
</div>
</div>
<!------------End Header ------------>
<div class="main">
    <div class="wrap">
        <div class="content">
            <div class="content_top">
                <div class="heading">
                    <h3>正在热映</h3>
                </div>
            </div>

            <div class="section group">
                <c:forEach items="${hotMovies}" var="list" begin="0" end="4">
                    <div class="grid_1_of_5 images_1_of_5">
                        <a href="buy/${list.mid}"><img
                                src="${list.mpicture}"
                                alt=""/></a>
                        <h2><a href="buy/${list.mid}">${list.mname}</a></h2>
                        <div class="price-details">
                            <div class="price-number">
                                <p><span class="rupees">${list.mgrade}分</span></p>
                            </div>
                            <div class="add-cart">
                                <h4><a href="buy/${list.mid}">购票</a></h4>
                            </div>
                            <div class="clear"></div>
                        </div>
                    </div>
                </c:forEach>
            </div>

            <div class="content_bottom">
                <div class="heading">
                    <h3>即将上映</h3>
                </div>
            </div>
            <div class="section group">
                <c:forEach begin="0" end="4" items="${soonMovies}" var="list">
                    <div class="grid_1_of_5 images_1_of_5">
                        <a href="buy/${list.mid}"><img src="${list.mpicture}" alt=""/></a>
                        <h2><a href="buy/${list.mid}">${list.mname}</a></h2>

                        <div class="add-cart">
                            <h4><a href="buy/${list.mid}">${list.mreleasedtime}</a></h4>
                        </div>

                    </div>
                </c:forEach>
            </div>
        </div>
    </div>
</div>

<div class="footer">
    <div class="wrap">
        <div class="copy_right">
            <p>Copyright &copy; 2019.Company pigEye All rights reserved.
            </p>
        </div>
    </div>
</div>
<script type="text/javascript" src="../js/lb.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $().UItoTop({
            easingType: 'easeOutQuart'
        });

    });
</script>

<a href="#" id="toTop"><span id="toTopHover"> </span></a>
<div style="display:none">
    <script src='http://v7.cnzz.com/stat.php?id=155540&web_id=155540' language='JavaScript'
            charset='gb2312'></script>
</div>
</body>

</html>